.class public Lcom/noshufou/android/su/PinActivity;
.super Landroid/app/Activity;
.source "PinActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# static fields
.field public static final EXTRA_ATTEMPTS_ALLOWED:Ljava/lang/String; = "attempts_allowed"

.field public static final EXTRA_MODE:Ljava/lang/String; = "mode"

.field public static final EXTRA_PIN:Ljava/lang/String; = "pin"

.field public static final EXTRA_SECRET_CODE:Ljava/lang/String; = "secret_code"

.field public static final MODE_CHANGE:I = 0x2

.field public static final MODE_CHECK:I = 0x3

.field public static final MODE_NEW:I = 0x1

.field public static final MODE_SECRET_CODE:I = 0x4


# instance fields
.field private mAttempts:I

.field private mAttemptsAllowed:I

.field private mMode:I

.field private mOriginalHintTextColor:I

.field private mPinConfirm:Ljava/lang/String;

.field private mPinText:Landroid/widget/EditText;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 14
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 27
    const-string v0, ""

    iput-object v0, p0, Lcom/noshufou/android/su/PinActivity;->mPinConfirm:Ljava/lang/String;

    .line 28
    const/4 v0, 0x3

    iput v0, p0, Lcom/noshufou/android/su/PinActivity;->mAttemptsAllowed:I

    .line 29
    iput v1, p0, Lcom/noshufou/android/su/PinActivity;->mAttempts:I

    .line 31
    iput v1, p0, Lcom/noshufou/android/su/PinActivity;->mMode:I

    .line 14
    return-void
.end method

.method private onOk()V
    .locals 11

    .prologue
    const/4 v7, 0x1

    const/4 v10, 0x0

    const/high16 v9, -0x1

    const/4 v4, -0x1

    .line 110
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 167
    :goto_0
    return-void

    .line 114
    :cond_0
    iget v2, p0, Lcom/noshufou/android/su/PinActivity;->mMode:I

    packed-switch v2, :pswitch_data_0

    goto :goto_0

    .line 116
    :pswitch_0
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-interface {v2}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v0

    .line 117
    .local v0, enteredPin:Ljava/lang/String;
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinConfirm:Ljava/lang/String;

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 118
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-interface {v2}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinConfirm:Ljava/lang/String;

    .line 119
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const-string v3, ""

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 120
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const v3, 0x7f0b00b5

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setHint(I)V

    .line 121
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    iget v3, p0, Lcom/noshufou/android/su/PinActivity;->mOriginalHintTextColor:I

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setHintTextColor(I)V

    goto :goto_0

    .line 122
    :cond_1
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinConfirm:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 123
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    .line 124
    .local v1, intent:Landroid/content/Intent;
    const-string v2, "pin"

    invoke-static {v0}, Lcom/noshufou/android/su/util/Util;->getHash(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 125
    invoke-virtual {p0, v4, v1}, Lcom/noshufou/android/su/PinActivity;->setResult(ILandroid/content/Intent;)V

    .line 126
    invoke-virtual {p0}, Lcom/noshufou/android/su/PinActivity;->finish()V

    goto :goto_0

    .line 128
    .end local v1           #intent:Landroid/content/Intent;
    :cond_2
    const-string v2, ""

    iput-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinConfirm:Ljava/lang/String;

    .line 129
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const-string v3, ""

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 130
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const v3, 0x7f0b00b6

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setHint(I)V

    .line 131
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    invoke-virtual {v2, v9}, Landroid/widget/EditText;->setHintTextColor(I)V

    goto :goto_0

    .line 136
    .end local v0           #enteredPin:Ljava/lang/String;
    :pswitch_1
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-interface {v2}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {p0, v2}, Lcom/noshufou/android/su/util/Util;->checkPin(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 137
    iget v2, p0, Lcom/noshufou/android/su/PinActivity;->mMode:I

    const/4 v3, 0x3

    if-ne v2, v3, :cond_3

    .line 138
    invoke-virtual {p0, v4}, Lcom/noshufou/android/su/PinActivity;->setResult(I)V

    .line 139
    invoke-virtual {p0}, Lcom/noshufou/android/su/PinActivity;->finish()V

    goto/16 :goto_0

    .line 141
    :cond_3
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const-string v3, ""

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 142
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const v3, 0x7f0b00b4

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setHint(I)V

    .line 143
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    iget v3, p0, Lcom/noshufou/android/su/PinActivity;->mOriginalHintTextColor:I

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setHintTextColor(I)V

    .line 144
    iput v7, p0, Lcom/noshufou/android/su/PinActivity;->mMode:I

    goto/16 :goto_0

    .line 147
    :cond_4
    iget v2, p0, Lcom/noshufou/android/su/PinActivity;->mAttempts:I

    add-int/lit8 v2, v2, 0x1

    iget v3, p0, Lcom/noshufou/android/su/PinActivity;->mAttemptsAllowed:I

    if-ge v2, v3, :cond_5

    .line 148
    iget v2, p0, Lcom/noshufou/android/su/PinActivity;->mAttempts:I

    add-int/lit8 v2, v2, 0x1

    iput v2, p0, Lcom/noshufou/android/su/PinActivity;->mAttempts:I

    .line 149
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const-string v3, ""

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 150
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    invoke-virtual {p0}, Lcom/noshufou/android/su/PinActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    .line 151
    const v4, 0x7f0c0002

    .line 152
    iget v5, p0, Lcom/noshufou/android/su/PinActivity;->mAttemptsAllowed:I

    iget v6, p0, Lcom/noshufou/android/su/PinActivity;->mAttempts:I

    sub-int/2addr v5, v6

    new-array v6, v7, [Ljava/lang/Object;

    .line 153
    iget v7, p0, Lcom/noshufou/android/su/PinActivity;->mAttemptsAllowed:I

    iget v8, p0, Lcom/noshufou/android/su/PinActivity;->mAttempts:I

    sub-int/2addr v7, v8

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    aput-object v7, v6, v10

    .line 151
    invoke-virtual {v3, v4, v5, v6}, Landroid/content/res/Resources;->getQuantityString(II[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    .line 150
    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    .line 154
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    invoke-virtual {v2, v9}, Landroid/widget/EditText;->setHintTextColor(I)V

    goto/16 :goto_0

    .line 156
    :cond_5
    invoke-virtual {p0, v10}, Lcom/noshufou/android/su/PinActivity;->setResult(I)V

    .line 157
    invoke-virtual {p0}, Lcom/noshufou/android/su/PinActivity;->finish()V

    goto/16 :goto_0

    .line 162
    :pswitch_2
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    .line 163
    .restart local v1       #intent:Landroid/content/Intent;
    const-string v2, "secret_code"

    iget-object v3, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    invoke-virtual {v3}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/CharSequence;)Landroid/content/Intent;

    .line 164
    invoke-virtual {p0, v4, v1}, Lcom/noshufou/android/su/PinActivity;->setResult(ILandroid/content/Intent;)V

    .line 165
    invoke-virtual {p0}, Lcom/noshufou/android/su/PinActivity;->finish()V

    goto/16 :goto_0

    .line 114
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 2
    .parameter "view"

    .prologue
    .line 88
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 107
    :goto_0
    return-void

    .line 89
    :pswitch_0
    iget-object v0, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const-string v1, "0"

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->append(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 90
    :pswitch_1
    iget-object v0, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const-string v1, "1"

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->append(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 91
    :pswitch_2
    iget-object v0, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const-string v1, "2"

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->append(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 92
    :pswitch_3
    iget-object v0, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const-string v1, "3"

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->append(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 93
    :pswitch_4
    iget-object v0, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const-string v1, "4"

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->append(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 94
    :pswitch_5
    iget-object v0, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const-string v1, "5"

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->append(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 95
    :pswitch_6
    iget-object v0, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const-string v1, "6"

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->append(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 96
    :pswitch_7
    iget-object v0, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const-string v1, "7"

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->append(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 97
    :pswitch_8
    iget-object v0, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const-string v1, "8"

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->append(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 98
    :pswitch_9
    iget-object v0, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const-string v1, "9"

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->append(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 100
    :pswitch_a
    invoke-direct {p0}, Lcom/noshufou/android/su/PinActivity;->onOk()V

    goto :goto_0

    .line 103
    :pswitch_b
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/noshufou/android/su/PinActivity;->setResult(I)V

    .line 104
    invoke-virtual {p0}, Lcom/noshufou/android/su/PinActivity;->finish()V

    goto :goto_0

    .line 88
    :pswitch_data_0
    .packed-switch 0x7f0a0040
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
        :pswitch_8
        :pswitch_9
        :pswitch_a
        :pswitch_0
        :pswitch_b
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5
    .parameter "savedInstanceState"

    .prologue
    const/4 v4, 0x0

    .line 38
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 40
    const v2, 0x7f030003

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/PinActivity;->setContentView(I)V

    .line 42
    const v2, 0x7f0a003f

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/PinActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    iput-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    .line 43
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getCurrentHintTextColor()I

    move-result v2

    iput v2, p0, Lcom/noshufou/android/su/PinActivity;->mOriginalHintTextColor:I

    .line 45
    const v2, 0x7f0a004a

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/PinActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 46
    const v2, 0x7f0a0040

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/PinActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 47
    const v2, 0x7f0a0041

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/PinActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 48
    const v2, 0x7f0a0042

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/PinActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 49
    const v2, 0x7f0a0043

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/PinActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 50
    const v2, 0x7f0a0044

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/PinActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 51
    const v2, 0x7f0a0045

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/PinActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 52
    const v2, 0x7f0a0046

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/PinActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 53
    const v2, 0x7f0a0047

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/PinActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 54
    const v2, 0x7f0a0048

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/PinActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    invoke-virtual {v2, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 56
    const v2, 0x7f0a0049

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/PinActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    .line 57
    .local v1, okButton:Landroid/widget/Button;
    invoke-virtual {v1, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 58
    const v2, 0x7f0b0017

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setText(I)V

    .line 59
    const v2, 0x7f0a004b

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/PinActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    .line 60
    .local v0, cancelButton:Landroid/widget/Button;
    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 61
    const v2, 0x7f0b001a

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setText(I)V

    .line 63
    invoke-virtual {p0}, Lcom/noshufou/android/su/PinActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "mode"

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v2

    iput v2, p0, Lcom/noshufou/android/su/PinActivity;->mMode:I

    .line 64
    iget v2, p0, Lcom/noshufou/android/su/PinActivity;->mMode:I

    packed-switch v2, :pswitch_data_0

    .line 78
    new-instance v2, Ljava/lang/IllegalArgumentException;

    const-string v3, "You must specify an operating mode"

    invoke-direct {v2, v3}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v2

    .line 66
    :pswitch_0
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const v3, 0x7f0b00b4

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setHint(I)V

    .line 81
    :goto_0
    invoke-virtual {p0}, Lcom/noshufou/android/su/PinActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "attempts_allowed"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 82
    invoke-virtual {p0}, Lcom/noshufou/android/su/PinActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "attempts_allowed"

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v2

    iput v2, p0, Lcom/noshufou/android/su/PinActivity;->mAttemptsAllowed:I

    .line 84
    :cond_0
    return-void

    .line 70
    :pswitch_1
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const v3, 0x7f0b00b3

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setHint(I)V

    goto :goto_0

    .line 73
    :pswitch_2
    iget-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    const/16 v3, 0x8

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setVisibility(I)V

    .line 74
    const v2, 0x7f0a000e

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/PinActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    iput-object v2, p0, Lcom/noshufou/android/su/PinActivity;->mPinText:Landroid/widget/EditText;

    .line 75
    const v2, 0x7f0a000d

    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/PinActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2, v4}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 64
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method
